<?php
    $db = new DBQuery;
    $sql = "SELECT * FROM project ORDER BY pro_priority ASC LIMIT 9";
    $project = $db->query($sql);
    foreach($project as $pro):
?>
    <div class="prject">
        <ul>
            <li class="bigProject_index">
        <figure>
             <a class="single_image" href="../images/project_image/<?php echo $pro['pro_image'];?>">
            <img src="../images/project_image/<?php echo $pro['pro_image'];?>" alt="<?php echo $pro['pro_name_vn']?>"  />
            </a>
        </figure>
        <div class="dividehr"></div>
    <h5 rel="tooltip" title="<?php echo $pro['pro_name_vn']?>"><?php echo cut_string($pro['pro_name_vn'],20);?></h5>
            </li>
        
    <h6><?php 
    switch($pro['pro_type_id']){
        case 0:echo 'trung tâm hội nghị';break;
        case 1:echo 'trung tâm thể thao';break;
        case 2:echo 'bệnh viện - TT Y tế';break;
        case 3:echo 'tòa nhà - văn phòng';break;
    }
    ?></h6>
    </div>
    <?php endforeach;?>
    </ul>
<script>
$('.bigProject_index h5').tooltip({placement:'bottom'});
</script>
<script>
$("a.single_image").fancybox({
    'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	false
});
</script>